import {
    createRouter,
    createWebHashHistory,
    Router,
    RouteRecordRaw,
} from 'vue-router';
import About from '../pages/About.vue';
import Home from '../pages/Home.vue';

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: Home,
    },
    {
        path: '/about',
        name: 'About',
        component: About,
    },
];

const router: Router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
